ApplyFMSPanel = function(){
	var addAppInfo=function(){
		this.removeAll(true);
		var b =new ApplyFormPanel();
		this.add(b);
		this.doLayout();
	};
	var addSendPanel=function(){
		this.removeAll(true);
		var b=new ApplyFMSGridPanel();
		this.add(b);
		this.doLayout();
	};
	
	var tbar = new Ext.Toolbar({
			height:30,
			layout:"column",
			items:[
				new Ext.Button(
					{
						text:"出国申报",
						iconCls:"btn-sendM",
						handler:addAppInfo,
						scope:this
					}
				),{
					xtype:"button",
					text:"申报查询",
					iconCls:"btn-sendMessage",
					handler:addSendPanel,
					scope:this
				}
			]
	});
	var grid = new ApplyFMSGridPanel();
	var config = {
		title:'出国任务列表',
		iconCls:'zoom',
		layout:"fit",
		width:300,
		height:400,
		tbar:tbar,
		id:'ApplyFMSPanel',
		items:[grid]
	}
	ApplyFMSPanel.superclass.constructor.call(this,config);
}
Ext.extend(ApplyFMSPanel,Ext.Panel);